<? FoundryView::includeTpl( 'adminMain:header' ) ?>


<div id="loginBox">

<? if( $this->data['error'] ) : ?>
	<div class="authError"><?=$this->data['error']?></div>
<? endif ?>

<form method="post" action="<?=FoundryView::helperLinkTo( 'user/authenticate' )?>">
	<b>Username:</b><br />
	<input type="text" name="username" /><p />
	
	<b>Password:</b><br />
	<input type="password" name="password" /><p />
	
	<input type="hidden" name="k" value="<?=$this->data['key']?>" />
	<input type="submit" value="Login" />
	<a href="<?=FoundryView::helperLinkTo('global/main')?>">Cancel</a>
</form>
</div>

<? FoundryView::includeTpl( 'adminMain:footer' ) ?>